{extend name='admin@public/content'}

{block name="content"}

<!-- 表单搜索 开始 -->
<form class="layui-form layui-form-pane form-search" id="myform" action="{:request()->url()}" onsubmit="return false" method="get">

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">会员号</label>
        <div class="layui-input-inline">
            <input name="code" id="code" value="{$Think.get.code|default=''}" placeholder="请输入会员号" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">卡号</label>
        <div class="layui-input-inline">
            <input name="card_no" id="card_no" value="{$Think.get.card_no|default=''}" placeholder="请输入订单编号" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>

</form>

<!--{empty name='list'}-->
<p class="help-block text-center well">没 有 记 录 哦！</p>
<!--{else}-->
<input type="hidden" value="resort" name="action">
<table class="layui-table" lay-skin="line">
    <thead>
    <tr>
        <th class='text-left nowrap'>会员号</th>
        <th class='text-left nowrap'>会员昵称</th>
        <th class='text-left nowrap'>会员卡号</th>
        <th class='text-left nowrap'>原金额</th>
        <th class='text-left nowrap'>变动金额</th>
        <th class='text-left nowrap'>余额</th>
        <th class='text-left nowrap'>类别</th>
        <th class='text-left nowrap'>时间</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    <!--{foreach $list as $key=>$vo}-->
    <tr>
        <td class="text-left nowrap">
            {$vo.code}
        </td>
        <td class='text-left nowrap'>
            {$vo.user_name}
        </td>
        <td class='text-left nowrap'>
            {$vo.cards}
        </td>
        
        <td class='text-left nowrap'>
                {$vo.old_amount|fenToyuan}
        </td>
        <td class='text-left nowrap'>
                {$vo.var_amount|fenToyuan}
        </td>
        <td class='text-left nowrap'>
                {$vo.amount|fenToyuan}
        </td>
        <td class='text-left nowrap'>
            <?php echo array_search($vo['b_type'],$btype); ?>
        </td>
        <td class='text-left nowrap'>
            {$vo.create_at}
        </td>

        <td class='text-left nowrap'>
          
        </td>
    </tr>
    <!--{/foreach}-->
    </tbody>
</table>
{if isset($page)}<p>{$page|raw}</p>{/if}
<!--{/empty}-->

<script type="text/javascript">
    $(function () {
   

    });

</script>

{/block}